|
Public Member Functions |
| virtual boolean MCCOMAPI | SetCurrentTool (int32 inToolID, boolean inRedraw, boolean inNotify=true)=0 |
| virtual void MCCOMAPI | SetLayoutOrientation (ELayoutOrientation inLayoutOrientation)=0 |
| virtual void MCCOMAPI | SetLayoutStyle (ELayoutStyle inlayoutStyle)=0 |
| virtual void MCCOMAPI | SetIsGlobal (boolean inIsGlobal)=0 |
| virtual void MCCOMAPI | SetToolSelectRecipient (IMFResponder *recipient)=0 |
| virtual void MCCOMAPI | SetToolManipulationResponder (IMFResponder *inResponder)=0 |
| virtual void MCCOMAPI | SetRespectWindowActive (boolean inValue)=0 |
| virtual int32 MCCOMAPI | GetCurrentTool ()=0 |
virtual ELayoutOrientation
MCCOMAPI | GetLayoutOrientation () const =0 |
| virtual ELayoutStyle MCCOMAPI | GetLayoutStyle () const =0 |
| virtual void MCCOMAPI | AddToolsFromTBARResource (ResourceID inTBARID)=0 |
| virtual void MCCOMAPI | AddTool (int32 inToolID, EToolStyle inToolStyle, ResourceID inImage[kTotalImages], int16 inToolKey, const TMCString &inName, ActionNumber inActionNumber, boolean inIsAlwaysEnabled, boolean inIsShadowed, int32 inAfterIndex)=0 |
| virtual void MCCOMAPI | ResetTools ()=0 |
| virtual void MCCOMAPI | EnableAllTools (boolean inEnabled)=0 |
| virtual IMFResponder *MCCOMAPI | GetToolSelectRecipientNoAddRef ()=0 |
| virtual IMFResponder *MCCOMAPI | GetToolManipulationResponderNoAddRef ()=0 |
| virtual boolean MCCOMAPI | SelectTool (int32 inToolID)=0 |
| virtual IMFPart *MCCOMAPI | GetThisPart ()=0 |
Toolbars can be constructed manually using these functions, or from a TBAR resource. See MFRTypes.r for the definition of a TBAR resource structure. Note that there are special tool types for defining groups of tools to stack, as follows. The tools between these two keys in a TBAR resource will be stacked.
tBeginToolGroup, "", noKey, noAction, normalEnabling, style_normal { noShadow, 0, 0, 0, 0, 0, 0 },
tEndToolGroup, "", noKey, noAction, normalEnabling, style_normal { noShadow, 0, 0, 0, 0, 0, 0 },
To create a tool, you will assign the tool a numeric ID, an optional hotkey, an optional action, an enabling mode (see MFRTypes.r), an EToolStyle, and a set of UImg resource numbers which correspond to icons for the various states the tool can have. See EImageIndices for the list of tool states.